<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>备份管理</title>
<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'index'}" class="action">备份列表</a></li>
				<li><a href="{|U:'backup'}">数据备份</a></li>
			</ul>
		</div>
		<table class="table2">
			<thead>
				<tr>
					<td>目录</td>
					<td>备份时间</td>
					<td>大小</td>
					<td class="w100">操作</td>
				</tr>
			</thead>
			<list from="$dirs" name='$d'>
			<tr>
				<td>{$d.path|hd_substr:-1,''}</td>
				<td>{$d.filemtime|date:'Y-m-d H:i:s',@@}</td>
				<td>{$d.size|get_size}</td>
				<td>
					<a href="{|U:'recovery',array('dir'=>$d['filename'])}">还原</a> |
					<a href="{|U:'del',array('dir'=>$d['filename'])}" onclick="return confirm('确定删除备份文件吗？')">删除</a>
				</td>
			</tr>
			</list>
		</table>
	</div>
</body>
</html>